home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2007 January, February, March & April
/
Chip-Cover-CD-2007-02.iso
/
Pakiet bezpieczenstwa
/
mini Pentoo LiveCD 2006.1
/
mpentoo-2006.1.iso
/
livecd.squashfs
/
etc
/
init.d
/
arpwatch
< prev
next >
Wrap
Text File
|
2006-06-30
|
788b
|
34 lines
#!/sbin/runscript
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-analyzer/arpwatch/files/arpwatch.init,v 1.8 2006/01/22 17:43:41 vanquirius Exp $
depend() {
need net
use cupsd
}
start() {
for IFACE in ${IFACES}
do
ebegin "Starting arpwatch on ${IFACE}"
DATAFILE=/var/lib/arpwatch/${IFACE}.dat
if [ ! -f ${DATAFILE} ]; then
touch ${DATAFILE}
fi
if [ -z ${ARPUSER} ]; then
setsid /usr/sbin/arpwatch -i $IFACE -f /var/lib/arpwatch/$IFACE.dat ${OPTIONS}
eend $?
else
setsid /usr/sbin/arpwatch -i $IFACE -u ${ARPUSER} -f /var/lib/arpwatch/$IFACE.dat ${OPTIONS}
eend $?
fi
done
}
stop() {
ebegin "Stopping arpwatch"
killall arpwatch > /dev/null
eend $?
}